home *** CD-ROM | disk | FTP | other *** search
- card_5678.xml
- <?xml version="1.0" encoding="utf-8" ?>
- <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
- <card>
- <id>5678</id>
- <filler1>0</filler1>
- <cantDelete> <false /> </cantDelete>
- <showPict> <true /> </showPict>
- <dontSearch> <false /> </dontSearch>
- <owner>2624</owner>
- <link rel="stylesheet" type="text/css" href="stylesheet_3183.css" />
- <part>
- <id>1</id>
- <type>field</type>
- <visible> <true /> </visible>
- <dontWrap> <false /> </dontWrap>
- <dontSearch> <false /> </dontSearch>
- <sharedText> <false /> </sharedText>
- <fixedLineHeight> <false /> </fixedLineHeight>
- <autoTab> <false /> </autoTab>
- <lockText> <false /> </lockText>
- <rect>
- <left>0</left>
- <top>0</top>
- <right>512</right>
- <bottom>342</bottom>
- </rect>
- <style>scrolling</style>
- <autoSelect> <false /> </autoSelect>
- <showLines> <false /> </showLines>
- <wideMargins> <false /> </wideMargins>
- <multipleLines> <false /> </multipleLines>
- <reservedFamily> 0 </reservedFamily>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>left</textAlign>
- <font>Tech</font>
- <textSize>9</textSize>
- <textStyle>plain</textStyle>
- <textHeight>12</textHeight>
- <name>Chat</name>
- <script></script>
- </part>
- <content>
- <layer>card</layer>
- <id>1</id>
- <text>Type shift-6 (^) to exit chat...
-
- </text>
- </content>
- <name>Chat</name>
- <script>on openCard
- global keybuff
- global foundSoFar
- put empty into foundSoFar
- configureSPort lineFeedOn,echoOn
- put "Type shift-6 (^) to exit chat..." into it
- put it & return & return into cd field "Chat"
- sendString return & return & return & it & return & return
- play "chat"
- put empty into keybuff
- end openCard
-
- on idle
- global foundSoFar
- get recvUpTo(return,10,foundSoFar)
- -- get recvChars(charsAvailable())
- if it is not empty then put it after cd fld "Chat"
- if it contains "^" then exitChat
- else if it contains "NO CARR" then
- put "Connection broken!"
- exitChat
- end if
- end idle
-
- on keydown whichkey
- global keybuff
- get whichkey
- if it is numToChar(8) then
- put empty into last char of keybuff
- else if it is "^" then exitChat
- else
- put it after keybuff
- if it is then beep 1
- else
- if (charToNum(it) < 65) or (charToNum(it) > 122) then
- put keybuff after cd field "Chat"
- sendString keybuff
- put empty into keybuff
- end if
- end if
- end if
- end keydown
-
- on exitChat
- beep 1
- sendVanilla "Chat ending... "
- pop card
- end exitChat</script>
- </card>
-
-
-